package com.mgg.payment.enums;

import com.mgg.common.enums.BaseResult;

/**
 * @Author: lijun
 * @Date: 2018-09-01 10:22:00
 */
public enum PaymentResultEnum implements BaseResult{

    //支付模块
    WXPAY_NOTIFY_MONEY_VERIFY_ERROR("601","微信支付金额异常"),
    ALIPAY_CREATE_ERROR("602","阿里支付创建异常"),
    ALIPAY_REFUND_ERROR("603","阿里支付退款失败"),
    ALIPAY_TRANSFER_ERROR("604","阿里支付转账失败"),
    TRANSFER_NOT_FIND_ERROR("605","转账不存在"),
    WXPAY_UNIFIEDORDER_ERROR("606","微信统一下单异常"),
    WXPAY_NOTIFY_ERROR("607","微信回调验证失败"),
    WXPAY_REFUND_ERROR("608","微信支付退款失败"),
    TRANSFER_ACCOUNT_AMOUNT_NOT_ENOUGH("609","提现失败，账户余额不足"),
    REFUND_NOT_EXIST("610","退款单据不存在"),
    WITHDRAWALS_FAIL("611","提现失败！{0}"),
    ORDER_NOT_EXIST("612","订单不存在"),
    ORDER_STATUS_ERROR("613","订单状态错误"),
    ORDER_DO_DTLS_SAVE_ERROR("614","配送单明细保存失败"),
    ORDER_DO_SAVE_ERROR("615","配送单保存失败"),
    ;

    private String code;

    private String message;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    PaymentResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
